package com.study2.A03Test;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Random;

public class A02_Test {
    /*
    * 自动点名器
    *       班级里有n个学生
    *           70%概率随机男生
    *           30%概率随机女生
    * */
    
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>();
        Collections.addAll(list, 1,1,1,1,1,1,1,0,0,0);
        for (int i = 0; i < 100; i++) {
            Collections.shuffle(list);
            Integer i1 = list.get(0);
            if (i1 == 1) {
                System.out.println("男生");
            } else {
                System.out.println("女生");
            }
        }
        
    }
}
